{% extends "AdminBundle::layout.html.twig" %}
{% block body %}

{% include 'AdminBundle:Theme:page_list.html.twig' %}

{% endblock %}
{% block js %}
{{parent()}}
<script>
    function deleteTheme(id){
        $.ajax({
            url: '{{path('admin_theme_delete')}}',
            data: 'id='+id,
            success: function(data){
                $('#page-content').html(data)
            }
        })
    }
     function editTheme(id){
        $.ajax({
            url: '{{path('admin_theme_edit')}}',
            data: 'id='+id,
            success: function(data){
                $('#page-content').html(data)
            }
        })
    }
    
</script>
{% endblock %}